<template>
  <el-menu :default-active=$route.path :default-openeds="['2']" style="min-height: 100%; overflow-x: hidden"
           background-color="rgb(48, 65, 86)"
           text-color="#fff"
           active-text-color="#ffd04b"
           :collapse-transition="false"
           :collapse="isCollapse"
           router="router"
           @select="handleSelect"
  >
    <div style="height: 60px; line-height: 60px; text-align: center">
      <img src="../assets/pdx.jpg" alt="" style="width: 22px; position: relative; top: 5px;">
      <b style="color: white; margin-left: 5px;" v-show="!isCollapse" >macj</b>
    </div>
    <el-menu-item index="/about">
      <i class="el-icon-user"></i>
      <span slot="title">主页</span>
    </el-menu-item>
    <el-menu-item index="/user">
      <i class="el-icon-user"></i>
      <span slot="title">用户管理</span>
    </el-menu-item>
  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  props: {
    isCollapse: Boolean,
  },
  methods: {
    handleSelect(index) {

    }
  }
}
</script>

<style scoped>

</style>
